home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / apeqnum.sty < prev    next >
Text File  |  1995-11-25  |  865b  |  22 lines

  1. % This is apeqnum.sty
  2. % 8-November-1990
  3. % Don Hosek
  4. % Style option for article.sty and derivatives; causes equations
  5. % to be numbered A1, A2, A3, B1, etc. in a document.
  6.  
  7. % First save a copy of the old meaning of \appendix
  8. \let\apeqnum@appendix=\appendix 
  9.  
  10. % Now, we will redefine \appendix so that it does the following:
  11. %   (1) The old functions of \appendix (\apeqnum@appendix)
  12. %   (2) Causes equations to be numbered beginning from one at
  13. %       the beginning of each appendix (this is accomplished
  14. %       for the article style with the command
  15. %       \@addtoreset{equation}{section})
  16. %   (3) Change the definition of \theequation (which prints the
  17. %       equation numbers) so that the appendix letter is prepended.
  18. \def\appendix{%
  19.    \apeqnum@appendix % (1)
  20.    \@addtoreset{equation}{section} % (2)
  21.    \def\theequation{\thesection\arabic{equation}}} % (3)
  22.